home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 4
/
The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO
/
clang
/
c_life.zip
/
LIFE.TXT
< prev
Wrap
Text File
|
1993-08-30
|
1KB
|
22 lines
T H I S I S F R E E W A R E !
"Life" program, by Charles W. Reace, Jr., Berlin, NJ.
This is a fairly simple C++ program I wrote to help teach myself programming
in C. It is the now veneralble game of life, where each "*" on the display
screen represents a cell of life on some theoretical growth medium. A few
simple rules determine whether each cell lives, dies, and/or creates life in
adjacent cells.
Each instantiation of this program will run until 200 generations have
elapsed, or until the population reaches 0; at which point a new random start-
ing pattern will be generated and it all starts over again. Pressing any key
will abort the program.
The source code is included in this zipfile. Please feel free to make copies
of all files and distribute as desired, without any alterations. Please also
feel free to edit the source (compiled with Borland's Turbo C++ for the PC)
to make any enhancements and then distribute under your own name. Perhaps
you might turn it into a screen-saver program, using a different color scheme
each instantiation.